package com.hxzy.common.web.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;


/**
 * 通用分页请求参数
 */
@Getter
@Setter
@ApiModel(value = "分页查询模型")
public class PageReq {

    @ApiModelProperty("当前页")
    @NotNull(message = "当前页不能为空")
    private Integer pageNum;

    @ApiModelProperty("每页的数量")
    @NotNull(message = "每页的数量不能为空")
    private Integer pageSize;
}
